package com.dao;

import com.domain.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {

    User selectUserById(Integer id);
    User selectUserByOpenId(String openid);
    Boolean insertUser(User user);
    Boolean updateUserAvatarById(Integer id, byte[] avatar);
    Boolean updateUserName(Integer id, String userName);
    Integer selectUserIdByOpenid(String openid);

}
